package com.rdc.qingkou.presenter.ipresenter;


public interface IBrowseDetailPresenter {


    /**
     * 获取卡片的点赞和收藏状态
     *
     * @param userId
     * @param cardId
     */
    void getCardStatus(int userId, int cardId);

    void getCardStatusSuccess(boolean isCollected, boolean isAppreciated);

    void getCardStatusError(String message);

    /**
     * 点赞
     * @return
     */
    void appreciate(int userId, int cardId);

    /**
     * 取消点赞请求
     * @return
     */
    void cancelAppreciate(int userId, int cardId);

    void appreciateError(String message);

    void appreciateSuccess(boolean isAppreciated);

    /**
     * 收藏
     *
     * @return
     */
    void collect(int userId, int cardId);

    /**
     * 取消收藏
     *
     * @return
     */
    void cancelCollect(int userId, int cardId);

    void collectError(String message);

    void collectSuccess(boolean isCollected);


    /**
     * 删除卡片
     */
    void deleteCard(int CardId);

    void deleteCardResult(String message, boolean isSuccess);

    /**
     * 切断水管
     */
    void clearDisposable();


}
